A quick tour of batch processing

您所在的位置:网站首页 模型 企业 A quick tour of batch processing

A quick tour of batch processing

2022-05-19 21:16| 来源: 网络整理| 查看: 265

Entering parametersAdding more processesUsing the Check Values buttonFilling cells with the same valueExecuting

Batch processing is a core functionality in geoprocessing. Many geoprocessing workflows include running the same tool against a large number of datasets鈥攆or example, converting shapefiles into file geodatabase feature classes or clipping a number of thematic layers to a study area. To eliminate the repetition, each geoprocessing tool has a batch mode.

To use batch, right-click a tool and click Batch. This opens the batch dialog box with one row of the batch grid, as shown below with the Clip tool.

Clip tool's batch dialog box and batch gridTip:

Many geoprocessing tools have more than two parameters. To see as many parameters as possible at one glance, resize the tool dialog box. You can also change the width of the columns by dragging the column separator.

Entering parameters

You can enter parameter values by double-clicking the header row, as illustrated below.

Filling in a row

After entering values for each parameter, click OK on the tool dialog box. The batch grid row now contains the data you entered, as shown below.

Entering parameters using the tool's dialog boxAdding more processes

Each row in the batch grid represents a process鈥攁 tool plus the data needed to execute the tool. To add another process, click the Add button Add.

Batch grid with the added row

Double-click the row header to open the tool dialog box, or right-click an individual cell, click Open to open the parameter dialog box, then enter the cell value, as illustrated below.

Opening a parameter dialog box for a cellUsing Open to specify a dataset

Easier yet, since the Input Features parameter is for a dataset, right-click the cell and click Browse to go directly to the dataset.

Browsing to a datasetBrowsing to a dataset

After entering the value for Input Features, the batch grid appears as follows:

Second process addedBatch grid after adding data for the second processUsing the Check Values button

The Check Values button Check Mark validates the entire batch grid's content. Check Values also generates output dataset names.

After checking values

When you change any input to the batch grid, be sure to click the Check Values button Check Mark to validate and update the grid's content. Validation is also necessary if you change the scratch workspace for the batch outputs. Always validate the batch grid content before you execute the batch process.

Filling cells with the same value

In this example, all data is clipped to the same clip features. Rather than entering the same value in each Clip Features cell, you can use Fill, as illustrated below.

Using FillExecuting

After filling the batch grid, check your values Check Mark to ensure that all data is valid, then click OK. Batch grid rows are executed sequentially. Execution messages can be reviewed in the Results window.

Feedback on this topic?


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3